<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>台账管理</title>
<script type="text/javascript">
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/project/tz/list?projectId=${tz.subProject.project.id}&subProjectId=${tz.subProject.id}&suoxiePro=${suoxiePro}&suoxieSub=${suoxieSub}">台账列表</a></li>
		<c:if test="${not empty tz and not empty tz.subProject and not empty tz.subProject.id}">
			<li><a href="${ctx}/project/tz/form?projectId=${tz.subProject.project.id}&subProjectId=${tz.subProject.id}&suoxiePro=${suoxiePro}&suoxieSub=${suoxieSub}">台账信息添加</a></li>
		</c:if>
	</ul>
	<form:form id="searchForm" modelAttribute="tz"
		action="${ctx}/project/tz/list" method="post" class="breadcrumb form-search">
		<input name="subProject.id" type="hidden" value="${tz.subProject.id}" />
		<input name="subProject.project.id" type="hidden" value="${tz.subProject.project.id}" />
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<label>委托编号 ：</label>
		<form:input path="wtbh" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;
		<label>管线号 ：</label>
		<form:input path="gxh" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;
		<label>检件名称 ：</label>
		<form:input path="jjmc" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;
		<label>焊口编号 ：</label>
		<form:input path="hkbh" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;
		<label>检测方法 ：</label>
		<form:select path="jcff" class="input-medium">
			<form:option value="" label="请选择检测方法"/>
			<form:options items="${fns:getDictList('dict_jcff')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
		</form:select>
		&nbsp;&nbsp;
		<label>检测状态 ：</label>
		<form:select path="fxzt" class="input-medium">
			<form:option value="" label="请选择检测状态"/>
			<form:options items="${fns:getDictList('dict_fxzt')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
		</form:select>
		&nbsp;&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>	
	</form:form>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>记录编号</th>
				<th>委托编号</th>
				<th>检件名称</th>
				<th>管线号</th>
				<th>焊口编号</th>
				<th>底片袋编号</th>
				<th>返修片编号</th>
				<th>重拍片编号</th>
				<th>委托日期</th>
				<th>规格</th>
				<th>材质</th>
				<th>检测状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="tzz">
				<tr>
					<td>${tzz.xh}</td>
					<td>${tzz.wtbh}</td>
					<td>${tzz.jjmc}</td>
					<td>${tzz.gxh}</td>
					<td><a href="${ctx}/project/tz/form?id=${tzz.id}&projectId=${tzz.subProject.project.id}">${tzz.hkbh}</a></td>
					<td>${tzz.dpdh}</td>
					<td>${tzz.fxpbh}</td>
					<td>${tzz.cpph}</td>
					<td>${tzz.wtrq}</td>
					<td>${tzz.gg}</td>
					<td>${tzz.cz}</td>
					<td>${tzz.fxzt}</td>
					<td>
						<a href="${ctx}/project/tz/form?id=${tzz.id}&projectId=${tzz.subProject.project.id}">修改</a> 
						<a href="${ctx}/project/tz/form?id=${tzz.id}&notnew=yes&subProject.project.id=${tzz.subProject.project.id}&subProject.id=${tzz.subProject.id}&subProject.project.suoxie=${suoxiePro}&subProject.suoxie=${suoxieSub}">继续添加</a> 
						<a href="${ctx}/project/tz/delete?id=${tzz.id}&subProject.project.id=${tzz.subProject.project.id}&subProject.id=${tzz.subProject.id}&hkbh=${tzz.hkbh}" onclick="return confirmx('确认要删除该台账记录吗？', this.href)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>